package com.shop.cereshop.business.param.businessdata;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "OverviewParam", description = "首页二级-经营数据-交易概况参数")
public class OverviewParam {

    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    @ApiModelProperty(value = "时间类型 (1-今天 2-昨天 3-近七天 4-近30天)")
    @NotNull(message = "timeType不能为空")
    @Min(value = 1, message = "timeType不能小于1")
    @Max(value = 4, message = "timeType不能大于4")
    private Integer timeType;


}
